package org.reenscape.lib;
import java.util.Random;
/**
* Used for generating more accurate random numbers.
*/
public class RandomNum {

	/**
	* Default constructor for this.
	*/
	public RandomNum() {
	}
	
	/**
	* Gets the random number out of the max. 0 to A.
	*/
	public static int random(int a) {
		if(rGen != null){
			int num = rGen.nextInt((a + 1));
			return num;
		}
	return 0;
	}
	
	/**
	* Java package used for generation.
	*/
	public static Random rGen = new Random();
}